//package com.tm.gulimall.member.nacosconsumer;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//import org.springframework.web.client.RestTemplate;
//
//@RestController
//@RequestMapping("nacos/consumer")
//public class NacosConsumerController {
//
//    private final RestTemplate restTemplate;
//
//    @Autowired
//    public NacosConsumerController(RestTemplate restTemplate) {this.restTemplate = restTemplate;}
//
//    @RequestMapping(value = "/echo/{str}", method = RequestMethod.GET)
//    public String echo(@PathVariable String str) {
//        return restTemplate.getForObject("http://service-provider/echo/" + str, String.class);
//    }
//}
